<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!-- TemplateBeginEditable name="doctitle" -->
	<title>Consultar Vendedores</title>
	<!-- TemplateEndEditable -->
	<!-- TemplateBeginEditable name="head" -->
	<!-- TemplateEndEditable -->
	
	<link rel="stylesheet" href="style.css" type="text/css">
</head>

<body>

<div class="container">
  <div class="header"><a href="#"><img src="banner.jpg" alt="Insert Logo Here" name="Insert_logo" width="960" height="90" id="Insert_logo" style="background: black; display:block;" /></a>
    <!-- end .header --></div>
  <div class="sidebar1">
    <ul class="nav">
      <li><a href="paginaPrincipal.jsp">P&aacute;gina Principal</a></li>
      <li><a href="#">Vendas</a></li>            
      <li><a href="/Concessionaria/Concessionaria?operacao=cadVendas&corrente=14">Cadastrar</a></li>      
    </ul>

	<%@page import="java.util.* "%>
	<%@page import="org.dw.concessionaria.BEAN.VendaBEAN" %>
	
    <table width="180" border="0" style="text-align:center">
  <tr>
    <th scope="row" bgcolor="#ADB96E">Login</th>
  </tr>
  <tr>
    <th scope="row">Ol&aacute;, <%=session.getAttribute("logado") %></th>
  </tr>
  <tr> 
  	<td><a href="/Concessionaria/Concessionaria?operacao=logoff&corrente=1">Logoff</a></td>
  </tr>
</table>

    <!-- end .sidebar1 --></div>
  <div class="content">
    <h1>Vendas</h1>
    <form id="form1" name="form1" method="post" action="">
    <div class="table_form">
    <table width="698" border="0" style="text-align: left" cellspacing="10px">
      <tr>
        <th width="182" scope="row">Pesquisa</th>
        <td width="360"><input name="pesquisaVendedor" type="text" dir="ltr" size="60" /></td>
        <td>
	      <input type="button" name="pesquisar" value="Pesquisar" />
       </td>
       <td>
          <input type="button" name="pesquisaTudo" value="Exibir tudo" />
      </td>
      </tr>
      

      
    </table>        
    </div>
        <input type="hidden" size="18" name="corrente" value="8" />
    </form>
    <p>&nbsp;</p>
    <h2>&nbsp;</h2>
	
	    <table width="698" border="0" style="text-align: left" cellspacing="10px">
	<tbody>
    	<tr>
    		<td>Nota Fiscal</td>
    		<td>Funcion&aacute;rio</td>
    		<td>Cliente</td>            
            <td>Carro</td>
    	</tr>  
    	
    	<%
    	Collection<VendaBEAN> vendas;		
    	vendas = (Collection<VendaBEAN>)session.getAttribute("listVendas");
		for (VendaBEAN venda : vendas){ 			
	%>	
		<tr>
			<td><%=venda.getNotafiscal() %></td>
			<td><%=venda.getRg_vendedor() %></td>
            <td><%=venda.getRg_cliente() %></td>
            <td><%=venda.getChassiNum() %></td>	
		</tr>
	<%
		} 
	%>
	</tbody>
    </table>
	
    <!-- end .content --></div>
  <div class="footer">
    <p>    
    </p>
    <!-- end .footer --></div>
  <!-- end .container --></div>
</body>
</html>
